import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/index/vue-index.vue'
import login from '../../views/login/vue-login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    // component: HomeView,
    component:login,
  },
  {
    path: '/login',
    name: 'login',
    // component: HomeView,
    component:login,
  },
  {
    path: '/Audit',
    name: 'Audit',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "audit" */ '../../views/Audit/vue-audit.vue')
  },
  {
    path: '/AuditDetil',
    name: 'AuditDetil',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "auditDetil" */ '../../views/Audit/AuditDetil.vue')
  },
  {
    path: '/Audit/Detail',
    name: 'AuditDetail',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "auditDetail" */ '../../views/Audit/AuditDetail.vue')
  },
  {
    path: '/Audit/pop',
    name: 'AuditPop',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "auditPop" */ '../../views/Audit/AuditPop.vue')
  },
  {
    path: '/Audit/pub',
    name: 'AuditPub',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "auditPub" */ '../../views/Audit/AuditPub.vue')
  },
  {
    path: '/banner',
    name: 'banner',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "banner" */ '../../views/banner/vue-banner.vue')
  },
  {
    path: '/classify',
    name: 'classify',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "classify" */ '../../views/Classfy/vue-classify.vue')
  },
  {
    path: '/complain',
    name: 'complain',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "complain" */ '../../views/complain/vue-compain.vue')
  },
  {
    path: '/complain/Detail',
    name: 'complainDetail',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "complainDetail" */ '../../views/complain/ComplainDetail.vue')
  },
  {
    path: '/complain/Detail/info',
    name: 'complainDetailInfo',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "complainDetailInfo" */ '../../views/complain/ComplianImfor.vue')
  },
  {
    path: '/data',
    name: 'data',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "data" */ '../../views/Data/vue-data.vue')
  },
  {
    path: '/global',
    name: 'global',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "global" */ '../../views/Global/vue-global.vue')
  },
  {
    path: '/index',
    name: 'index',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "index" */ '../../views/index/vue-index.vue')
  },
  {
    path: '/information',
    name: 'information',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "information" */ '../../views/information/vue-information.vue')
  },
  {
    path: '/login',
    name: 'login',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "login" */ '../../views/login/vue-login.vue')
  },
  {
    path: '/notice',
    name: 'notice',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "notice" */ '../../views/notice/vue-notice.vue')
  },
  {
    path: '/permiss',
    name: 'permiss',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "permiss" */ '../../views/permiss/vue-permiss.vue')
  },
  {
    path: '/person',
    name: 'person',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "person" */ '../../views/person/vue-person.vue')
  },
  {
    path: '/personal',
    name: 'personal',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "personal" */ '../../views/personal/vue-personal.vue')
  },
  {
    path: '/resumn',
    name: 'resumn',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "resumn" */ '../../views/resumn/vue-resumn.vue')
  },
  {
    path: '/user',
    name: 'user',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "user" */ '../../views/User/vue-user.vue'),
    children:[
      {
      path:"/Datile",
      name:'Datile',
      component: () => import(/* webpackChunkName: "Datile" */ '../../views/User/UserDatile.vue')
      }
  ]
  },
  {
    path: '/user/Detail',
    name: 'Detail',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "Datile" */ '../../views/User/UserDatile.vue')
  },
  {
    path: '/user/PerDetail',
    name: 'PerDetail',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "Datile" */ '../../views/User/UserPerDetail.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
